package com.dopeydev.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class DirectionsBroadcastReceiver extends BroadcastReceiver {

	public static interface Action {
		public static final String SHOW_DIRECTION_INFO = "com.dopeydev.show_directions_info";
	}

	public static interface Extras {
		public static final String DIRECTION_INFO_MESSAGE = "com.dopeydev.direction_info_messsage";
	}

	@Override
	public void onReceive(Context context, Intent intent) {

		String action = intent.getAction();
		if (action.equalsIgnoreCase(Action.SHOW_DIRECTION_INFO)) {
			String directionInfoMessage = intent.getStringExtra(Extras.DIRECTION_INFO_MESSAGE);
			showDirectionInfo(directionInfoMessage);
		}
	}

	public void showDirectionInfo(String directionInfoMessage) {

	}

}
